<template>
  <section>
    <div class="serach-wrap">
      <input type="text" placeholder="请输入" v-model="keyWord" />&nbsp;
      <button @click="searchUsers">Search</button>
    </div>
  </section>
</template>
<script>
import emitter from './event'
export default {
  name: 'Search',
  data() {
    return {
      keyWord: ''
    }
  },
  methods: {
    searchUsers() {
      emitter.$emit('xx', this.keyWord)
    }
  }
}
</script>
